package com.ruoyi.mytest.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 【请填写功能名称】对象 m_music
 * 
 * @author li
 * @date 2023-03-07
 */
public class MMusic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long musicId;

    /** 音乐名称 */
    @Excel(name = "音乐名称")
    private String musicName;

    /** 是否上架（1 已上架 2未上架 ）单选按钮 */
    @Excel(name = "是否上架", readConverterExp = "1=,已=上架,2=未上架")
    private Boolean musicStatus;

    /** 上架日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @Excel(name = "上架日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date musicDate;

    /** 图片 */
    @Excel(name = "图片")
    private String musicImg;

    /** 介绍 */
    @Excel(name = "介绍")
    private String musicShow;

    /** 音乐类型 */
    @Excel(name = "音乐类型")
    private Long musicTypeId;

    /** 作者 */
    @Excel(name = "作者")
    private Long musicAuthorId;

    /** 作曲 */
    @Excel(name = "作曲")
    private Long musicZuoquId;

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date endTime;

    public void setMusicId(Long musicId) 
    {
        this.musicId = musicId;
    }

    public Long getMusicId() 
    {
        return musicId;
    }
    public void setMusicName(String musicName) 
    {
        this.musicName = musicName;
    }

    public String getMusicName() 
    {
        return musicName;
    }
    public void setMusicStatus(Boolean musicStatus)
    {
        this.musicStatus = musicStatus;
    }

    public Boolean getMusicStatus()
    {
        return musicStatus;
    }
    public void setMusicDate(Date musicDate)
    {
        this.musicDate = musicDate;
    }

    public Date getMusicDate()
    {
        return musicDate;
    }
    public void setMusicImg(String musicImg) 
    {
        this.musicImg = musicImg;
    }

    public String getMusicImg() 
    {
        return musicImg;
    }
    public void setMusicShow(String musicShow) 
    {
        this.musicShow = musicShow;
    }

    public String getMusicShow() 
    {
        return musicShow;
    }
    public void setMusicTypeId(Long musicTypeId) 
    {
        this.musicTypeId = musicTypeId;
    }

    public Long getMusicTypeId() 
    {
        return musicTypeId;
    }
    public void setMusicAuthorId(Long musicAuthorId) 
    {
        this.musicAuthorId = musicAuthorId;
    }

    public Long getMusicAuthorId() 
    {
        return musicAuthorId;
    }
    public void setMusicZuoquId(Long musicZuoquId) 
    {
        this.musicZuoquId = musicZuoquId;
    }

    public Long getMusicZuoquId() 
    {
        return musicZuoquId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("musicId", getMusicId())
            .append("musicName", getMusicName())
            .append("musicStatus", getMusicStatus())
            .append("musicDate", getMusicDate())
            .append("musicImg", getMusicImg())
            .append("musicShow", getMusicShow())
            .append("musicTypeId", getMusicTypeId())
            .append("musicAuthorId", getMusicAuthorId())
            .append("musicZuoquId", getMusicZuoquId())
            .toString();
    }
}
